<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class ProjectExportRecordsDetail extends Model
{
    use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'project_export_records_details';
    /**
     * 可批量赋值的属性。
     *
     * @var array
     */
    protected $fillable = [
        'project_agreement_id',
        'records_id',
        'project_id',
        'user_id',
        'agreement_code',
        'user_auth_name',
        'bank_card',
        'bank_username',
        'bank_name',
        'bank_addr',
        'id_card',
        'mobile',
        'company',
        'fee_type_key',
        'fee_type_value',
        'role',
        'active_date',
        'active_week',
        'active_time_begin',
        'active_time_end',
        'express_name',
        'express_code',
        'status',
        'pay_status',
        'audit_global_status',
        'audit_remark',
        'audit_first',
        'audit_fee',
        'audit_log',
        'receipt_form',
        'paymentd_at',
        'created_at',
        'updated_at',
        'deleted_at',
    ];

    public function project()
    {
        return $this->belongsTo(Project::class, 'project_id', 'id');
    }


    public function user(){
        return $this->belongsTo(User::class,'user_id','id');
    }
}
